package com.tongzhan.entity.xiangxian;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tongzhan.annotation.ColumnDoc;
import com.tongzhan.annotation.PrimaryKey;
import com.tongzhan.annotation.TableDoc;
import com.tongzhan.base.BaseModel;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**风采
 * @author hongjianbin
 * @date 2020/7/20
 */
@TableDoc(table = "t_fengcai",desc = "风采")
@Data
@Document(collection = "t_fengcai")
public class Fengcai extends BaseModel {
    @PrimaryKey
    @ColumnDoc("主键id")
    private String fcid;//主键id

    @ColumnDoc("名称")
    private String name;//名称

    @ColumnDoc("风采类型 1-个人风采、2-风景建设")
    private Integer type;//风采类型 1-个人风采、2-风景建设
    private String typeName;

    @ColumnDoc("风采介绍")
    private String info;//风采介绍

    @ColumnDoc("风采内容")
    private String  content;//风采内容

    @ColumnDoc("")
    private String url;

    @ColumnDoc("")
    private Integer is_del;

    @ColumnDoc("时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;//时间

    @ColumnDoc("街道")
    private String streetCode;//街道

    @ColumnDoc("村社区")
    private String villageCode;//村社区

    @ColumnDoc("上报人id")
    private String addUserId;//上报人id

    @ColumnDoc("上报人名称")
    private String addUserName;//上报人名称

    @ColumnDoc("添加时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date addTime;//添加时间


}
